<template>
<div>
  <p>加：<input type="text" v-model="form.man"></p>
  <p>减：<input type="text" v-model="form.jian"></p>
  <p>添加时间：<input type="date" v-model="form.stime"></p>
  <p>结束时间：<input type="date" v-model="form.etime"></p>
  <p>总张数：<input type="text" v-model="form.total"></p>
  <button @click="add_goods">添加</button>
</div>
</template>

<script>
export default {
  name: "cuopon",
  data(){
    return{
      form:{}
    }
  },methods:{
    add_goods(){
      this.$axios.post('coupon/add',this.form)
      .then(res=>{
        console.log(res.data)

      })
    }
  }
}
</script>

<style scoped>

</style>
